package day15.tarena.com;

public class TestThrow {
	public static void main(String[] args) {
		int a = 2;
		int b = 0;
		if (b != 0) {
			a = a / b;
		} else { // throw 是一个语句，
			throw new ArithmeticException("除数为0");
		}
	}
}
